home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1735 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.hds.co.uk!john
  2. From: Gary Walsh <Gary_Walsh@spire.hds.co.uk>
  3. Newsgroups: comp.lang.c,comp.unix.programmer,comp.unix.questions,comp.unix.misc
  4. Subject: Re: Passing arguments when debugging with dbx
  5. Date: 16 Jan 1996 17:15:38 GMT
  6. Organization: Hitachi Data Systems
  7. Message-ID: <4dgmfq$q4v@willow.hds.co.uk>
  8. References: <DL2vJ6.M2F@novice.uwaterloo.ca>
  9. NNTP-Posting-Host: hdsep.hds.co.uk
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  14.  
  15. jching@novice.uwaterloo.ca (Jonathan Ching) wrote:
  16. >Hi,
  17. >
  18. >I was wondering how you go about passing arguments into my program if
  19. >I'm debugging it with dbx?  I've read the man pages and I still can't 
  20. >figure it out, unless I missed it.
  21. >
  22. >For example, if my program takes two arguments like:
  23. >
  24. >myprogram arg1 arg2
  25. >
  26. >How would I put arg1 and arg2 on the command line when I invoke dbx without
  27. >dbx thinking that they were arguments for dbx?
  28. >
  29. >I've tried using "assign" after I start dbx, but it causes a lot of type errors.
  30. >
  31. >Can anyone help?
  32. >
  33.  
  34. Invoke dbx as 'dbx myprogram', then at the dbx prompt issue the command
  35. 'run arg1 arg2'.  To run it again with the same args use 'rerun'.
  36.  
  37. Gary
  38. -- 
  39. _____________________________________________________________________
  40. Gary Walsh                         E-mail: Gary_Walsh@spire.hds.co.uk
  41. Open Systems Product Specialist    Phone:  +44 1753 618806
  42. Hitachi Data Systems               Fax:    +44 1753 618576
  43. Sefton Park
  44. Stoke Poges                        Disclaimer: My views, not HDS'
  45. Buckinghamshire SL2 4HD
  46. England
  47. _____________________________________________________________________
  48.  
  49.  
  50.